package com.ruoyi.pingan.fymodule.order.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.pingan.fymodule.order.entity.SxoOrderDetail;
import com.ruoyi.pingan.fymodule.order.mapper.SxoOrderDetailMapper;
import com.ruoyi.pingan.fymodule.order.service.ISxoOrderDetailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;


/**
*
* 订单详情 业务层实现
*
* @author wangy
* @since 2025-06-18
*/
@Slf4j
@Service
public class SxoOrderDetailServiceImpl extends ServiceImpl<SxoOrderDetailMapper, SxoOrderDetail> implements ISxoOrderDetailService {


    @Override
    public List<SxoOrderDetail> listOrderDetailByOrderId(String orderId) {
        LambdaQueryWrapper<SxoOrderDetail> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(SxoOrderDetail::getOrderId, orderId);
        return this.list(queryWrapper);
    }
}